package com.tinem.platform.module.pojo.vo.security.verification.code;

import com.tinem.platform.module.pojo.enums.security.ImageCaptchaInterferenceType;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author fzh
 * @version v1
 * @program: platform
 * @className GenerateReq
 * @description TODO
 * @site 
 * @company 
 * @create 2020-09-28 10:11
 */
@Data
public class GenerateReq {
    @Max(1000L)
    @Min(10L)
    @NotNull
    Integer width = 200;
    @Max(1000L)
    @Min(10L)
    @NotNull
    Integer height = 100;
    @NotNull
    ImageCaptchaInterferenceType interferenceType = ImageCaptchaInterferenceType.Circle;
    @Max(10)
    @Min(1)
    @NotNull
    Integer codeCount = 4;
    @Max(100)
    @Min(0)
    @NotNull
    Integer interferenceLevel = 3;

    String to;
    String body;

    @ApiModelProperty(name = "imgCodeId", value = "图片验证码id",required = true)
    String imgCodeId;

    @ApiModelProperty(name = "imgCode", value = "图片验证码",required = true)
    String imgCode;
}
